#!/usr/bin/ruby -w
# -*- coding: UTF-8 -*-

=begin 
@author = sirius
@time = 2017.11.8
类似C#中的/**/ 
=end


class Customer
   @@no_of_customers=0 # 类变量，可以跨不同的对象使用
   def initialize(id, name, addr)
      @cust_id=id      # 实例变量，可以跨任何特定的实例或对象中的方法使用
      @cust_name=name
      @cust_addr=addr
   end

   def hello
      puts "Hello Ruby!"
   end
end

cust1=Customer.new("1", "John", "Wisdom Apartments, Ludhiya")
cust2=Customer.new("2", "Poul", "New Empire road, Khandala")

cust1.hello
cust2.hello